package com.itqf.Service.Shippingaddress.Impl;

import com.itqf.Dao.ShippingaddressMapper;
import com.itqf.Service.Shippingaddress.ShippingaddressService;
import com.itqf.entity.Shippingaddress;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class ShippingaddressServiceimpl implements ShippingaddressService {
    @Resource
    private ShippingaddressMapper shippingaddressMapper;
    @Override
    public int deleteByPrimaryKey(Integer shippingid) {
        return 0;
    }

    @Override
    public int insert(Shippingaddress record) {
        return 0;
    }

    @Override
    public int insertSelective(Shippingaddress record) {
        return 0;
    }


    @Override
    public int updateByPrimaryKeySelective(Shippingaddress record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Shippingaddress record) {
        return 0;
    }

    @Override
    public int deleteShippingaddressid(Integer shippingid) {
        return shippingaddressMapper.deleteShippingaddressid(shippingid);
    }

    @Override
    public List<Shippingaddress> findShippingaddress(String userid) {
        List<Shippingaddress> list = shippingaddressMapper.findShippingaddress(userid);
        return list;
    }

    @Override
    public Shippingaddress findbyShippingaddressid(Integer shippingid) {
        Shippingaddress shippingaddress = shippingaddressMapper.findbyShippingaddressid(shippingid);
        return shippingaddress;
    }

    @Override
    public int updetShippingaddressid(Map map) {
        return shippingaddressMapper.updetShippingaddressid(map);
    }


    @Override
    public int addShippingaddressid(Map map) {
        return shippingaddressMapper.addShippingaddressid(map);
    }

    @Override
    public Shippingaddress selectByPrimaryKey(Integer shippingid) {
        return shippingaddressMapper.selectByPrimaryKey(shippingid);
    }

}
